package com.lening.provider.service.impl.InternalWorkOrder;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.InternalWorkOrder.ErnalWorkOrderMainTableDAO;
import com.lening.provider.dto.InternalWorkOrder.ErnalWorkOrderMainTableDTO;
import com.lening.provider.po.InternalWorkOrder.ErnalWorkOrderMainTablePO;
import com.lening.provider.service.InternalWorkOrder.ErnalWorkOrderMainTableService;
import jdk.nashorn.internal.ir.annotations.Reference;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:34
 * @description 类对象
 */

@Slf4j
@Service
public class ErnalWorkOrderMainTableServiceImpl extends BaseServiceImpl<ErnalWorkOrderMainTableDAO, ErnalWorkOrderMainTablePO, ErnalWorkOrderMainTableDTO> implements ErnalWorkOrderMainTableService {

    @Autowired
    private ErnalWorkOrderMainTableDAO ernalWorkOrderMainTableDAO;

    @Override
    public Page<ErnalWorkOrderMainTableDTO> ernalWorkList(Page<ErnalWorkOrderMainTableDTO> ernalWorkOrderMainTableDTO) {
        Page<ErnalWorkOrderMainTableDTO> ernalWorkPage = ernalWorkOrderMainTableDAO.getList(ernalWorkOrderMainTableDTO);
        return ernalWorkPage;
    }

    @Override
    public long count() {
        return this.ernalWorkOrderMainTableDAO.count();
    }

    @Override
    public Page<?> page(ErnalWorkOrderMainTableDTO ernalWorkOrderMainTableDTO) {
        return this.baseMapper.getList(ernalWorkOrderMainTableDTO);
    }
}
